// pages/component/waterfall-flow/waterfall-flow.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    data: [
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜1~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/1.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜2~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/2.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜3~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/3.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜4~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/4.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜5~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/5.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜6~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/6.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜7~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/7.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜8~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/8.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜9~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/9.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜10~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/10.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      },
      {
        tagName: '唯美',
        tagColor: 'blue',
        light: true,
        title: "嗷呜11~",
        name: "LeeYaMaster",
        image: "/color_pro_img/小清新图片/11.jpg",
        avatar: "/color_pro_img/avatar/1.jpg",
        time: "哦嗨哟 sama"
      }
    ]
  },

  onLoad: function (options) {
    // 模拟分页及测试,正式开发的话，这段代码删了就行
    let data = this.data.data;
    let newData = [...data,...data,...data]
    setTimeout(()=>{
      this.setData({
        data: newData
      })
    },2000)
  },

})